﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HRM.Model
{
    public partial class NguoiSuDung
    {
        public bool GetPermisstion
        {
            get
            {
                if (this.MaNhom == (int)GroupUser.Manager) return true;
                else return false;
            }
        }

        public GroupUser GetRole
        {
            get
            {
                return (GroupUser)this.MaNhom;
            }
        }
    }
}
